﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Yelper.Web.Models {

    public class ChangePasswordModel {

        [Required(ErrorMessage = "This field is required.")]
        [Display(Name = "Password")]
        public string Password { get; set; }

        [Required(ErrorMessage = "This field is required.")]
        [Display(Name = "New password")]
        public string NewPassword { get; set; }

        [Required(ErrorMessage = "This field is required.")]
        [Compare("NewPassword", ErrorMessage = "Both passwords must match.")]
        [Display(Name = "Confirm new password")]
        public string ConfirmNewPassword { get; set; }

    }

}